package com.hp.modules.sys.dto;

import com.hp.common.base.YesNoEnum;
import com.hp.common.validator.Groups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>接收请求参数实体</p>
 * <p>Table: sys_post - 岗位</p>
 */
@ApiModel(description = "岗位")
public class SysPostParam {
    @ApiModelProperty(value = "主键-更新时必填")
    @NotNull(message = "主键不能为空",groups = {Groups.Update.class})
    private Long id;
    @ApiModelProperty(value = "岗位名称",required = true)
    @NotBlank(message = "岗位名称不能为空",groups = {Groups.Save.class,Groups.Update.class})
    private String name;
    @ApiModelProperty(value = "岗位编号",required = true)
    @NotBlank(message = "岗位编号不能为空",groups = {Groups.Save.class,Groups.Update.class})
    private String code;
    @ApiModelProperty(value = "排序",required = false)
    private Double sort;
    @ApiModelProperty(value = "是否启用(1->禁用|NO,2->启用|YES)",required = false)
    private YesNoEnum isEnabled;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Double getSort() {
        return sort;
    }

    public void setSort(Double sort) {
        this.sort = sort;
    }

    public YesNoEnum getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(YesNoEnum isEnabled) {
        this.isEnabled = isEnabled;
    }
}
